package com.jungeun.pickpics.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.RelativeLayout;

import com.jungeun.pickpics.R;

public class PickPicsActivity extends Activity implements OnClickListener {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
	}

	@Override
	protected void onResume() {
		super.onResume();

		final RelativeLayout mainLayout = (RelativeLayout) findViewById(R.id.main_layout);

		final ImageButton twoByOneButton = (ImageButton) findViewById(R.id.two_by_one_thumb);
		final ImageButton oneByTwoButton = (ImageButton) findViewById(R.id.one_by_two_thumb);
		final ImageButton ThreePortButton = (ImageButton) findViewById(R.id.three_piece_port_thumb);
		final ImageButton ThreeLandButton = (ImageButton) findViewById(R.id.three_piece_land_thumb);

		mainLayout.postDelayed(new Runnable() {
			public void run() {
				mainLayout.setBackgroundResource(R.color.white);
				twoByOneButton.setVisibility(View.VISIBLE);
				oneByTwoButton.setVisibility(View.VISIBLE);
				ThreePortButton.setVisibility(View.VISIBLE);
				ThreeLandButton.setVisibility(View.VISIBLE);
			}
		}, 2000);

		twoByOneButton.setOnClickListener(this);
		oneByTwoButton.setOnClickListener(this);
		ThreePortButton.setOnClickListener(this);
		ThreeLandButton.setOnClickListener(this);
	}

	@Override
	public void onClick(View view) {
		switch (view.getId()) {
		case R.id.two_by_one_thumb:
			Intent intent = new Intent();
			intent.setClass(this, TwoByOneActivity.class);
			startActivity(intent);

		case R.id.one_by_two_thumb:
			break;

		case R.id.three_piece_port_thumb:
			break;

		case R.id.three_piece_land_thumb:
			break;
		}

	}

}